from numpy import random

input = random.randint(0, 9, 10)

print(input)

result = [0]

for i, digit in enumerate(input):
    if i == 0:
        r = 1 if input[i] else 0
    else:
        current_digit = input[i]
        previous_digit = input[i - 1]
        r = result[i] if current_digit else 0
        r = r + result[i - 1] if 10 <= (10 * previous_digit + current_digit) <= 26 else r
    result.append(r)

print(result)
